const router = require('koa-router')()
const { getUserDetail } = require('../controller/user')
const { SuccessModel, ErrorModel } = require('../model/ResModel')

router.prefix('/api/users')

router.get('/detail', async (ctx,next)=>{
    const id = ctx.query.id
    const listData = await getUserDetail(id)
    console.log(listData);
    ctx.body =listData
})

module.exports = router
